#ifndef setup_h
#define setup_h


#include <Arduino.h>
#include "MyEeprom.h"

#define PHONE_NUMBER_COUNT_ADDRESS 0
#define PHONE_NUMBER_BYTES 9
#define PHONE_NUMBERS_START_ADDRESS 16

#define MAX_PHONE_NUMBERS 5

class Setup
{
public:

  Setup();
  int getPhoneNumberCount();
  void getPhoneNumberAtIndex(int index, char* buffer);

  //procesado de comandos
  boolean addNumber(const char* newNumber);
  boolean deleteNumber(const char* number);


private:
  int m_phoneNumberCount;
  MyEeprom m_myEeprom;


  void setPhoneNumber(const char* phoneNumber, int index);

  void setPhoneNumberCount(int count);

};

#endif

